<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Subject_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subject_id" data-rule="required"  data-source="subject/index" class="form-control selectpage" name="row[subject_id]" type="text" value="{$row.subject_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Report_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reporttitle" class="form-control" name="row[report_title]" type="text" value="{$row.report_title}">
        </div>
    </div>


    <div class="form-group">
        <label for="c-type" class="control-label col-xs-12 col-sm-2">{:__('Result_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[result_type]">
                {foreach name="result_type" item="vo"}
                <option value="{$key}" {in name="key" value="$row['result_type']"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('item')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-item"  data-source="subject_exam_item/index2?subject_id={:request()->get('subject_id')}"    class="form-control selectpage" name="row[item_id]" type="text"  value="{$row.item_id}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Min')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-min" class="form-control" step="0.01" name="row[min]" type="number" value="{$row.min}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Max')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-max" class="form-control" step="0.01" name="row[max]" type="number" value="{$row.max}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Level')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-level" class="form-control"  name="row[level]" type="number" value="{$row.level}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Report')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-report" class="form-control editor" rows="7" name="row[report]" cols="70">{$row.report}</textarea>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-desc" class="form-control editor" rows="7" name="row[desc]" cols="70">{$row.desc}</textarea>
        </div>
    </div>



    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
